#ifndef MYDATA_H
#define MYDATA_H
#include "mypushbutton.h"

class Mydata
{
public:
    Mydata();
    int map[10][10];

    //递归函数
    bool test(int x1,int x2);

    bool canRemove(Mypushbutton* p1,Mypushbutton* p2);
    bool canLine(Mypushbutton *p1,Mypushbutton *p2);
    bool canOnecornor(Mypushbutton* p1,Mypushbutton* p2);
    bool canTwocornor(Mypushbutton* p1,Mypushbutton* p2);
    bool myremove(Mypushbutton* p1,Mypushbutton* p2);

};

#endif // MYDATA_H
